package gov.child.entities.vo;

import gov.child.entities.po.ECollection;
import gov.child.entities.vo.annotation.Alias;

import java.util.Date;

/**
 * @author fzh
 * @since 2017/9/14
 */
public class Collection {

    public static final Collection EMPTY_COLLECTION = new Collection();

    public static Collection parseFrom(ECollection collection) {
        return BeanTransformer.transform(Collection.class, collection);
    }

    public static ECollection parseTo(Collection collection) {
        return BeanTransformer.transform(ECollection.class, collection);
    }

    @Alias("id")
    private Integer collectionId;
    private Integer userId;
    private Integer guideId;
    private Date createDate;
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Integer collectionId) {
        this.collectionId = collectionId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGuideId() {
        return guideId;
    }

    public void setGuideId(Integer guideId) {
        this.guideId = guideId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
